package com.collins.thread.practices.printOddNumber;

public class NumberBook {

    // create one lock
    public static final Object lock = new Object();
    // create number
    public static int num = 0;

    public static void main(String[] args) {
        CountNumber countRunnable = new CountNumber();
        Thread countThread1 = new Thread(countRunnable);
        Thread countThread2 = new Thread(countRunnable);

        countThread1.setName("countThread1");
        countThread2.setName("countThread2");

        countThread1.start();
        countThread2.start();
    }
}
